import 'package:flutter/material.dart';
import 'package:flutter_screenutil/flutter_screenutil.dart';
import 'swiper_center_item.dart';
class SwiperCenter extends StatefulWidget {
  @override
  _SwiperCenterState createState() => _SwiperCenterState();
}

class _SwiperCenterState extends State<SwiperCenter> {
  @override
  Widget build(BuildContext context) {
    return Container(
      width:750.w,
      padding: EdgeInsets.symmetric(horizontal: 50.w),
      decoration: BoxDecoration(color: Colors.white),
      child: Column(
        children: [
          Container(
            height: 80.w,
            decoration: BoxDecoration(
              color: Colors.white,
            ),
            child: Row(
              mainAxisAlignment: MainAxisAlignment.spaceBetween,
              children: [
                Row(
                  children: [
                    Icon(Icons.star, color: Colors.orange),
                    SizedBox(
                      width: 20.w,
                    ),
                    Text('会员升级要求', style: TextStyle(color: Colors.black))
                  ],
                ),
                RichText(
                  text: TextSpan(children: [
                    TextSpan(text: '0', style: TextStyle(color: Colors.orange,fontSize: 30.sp)),
                    TextSpan(text: '/1', style: TextStyle(color: Colors.black,fontSize: 30.sp))
                  ]),
                )
              ],
            ),
          ),
          SwiperCenterItem(),
          SwiperCenterItem(),
          SwiperCenterItem(),

        ],
      ),
    );
  }
}
